ttSelectedOpen
Type Definitions
DTPBRec desktop parameter block
Constants
For FindFolder
kOnSystemDisk 0x8000 use vRefNum for the boot disk
kCreateFolder TRUE create folder if it doesn't exist
kDontCreateFolder FALSE don't create folder
Alias Constants for Desktop Objects
kAppleMenuFolderAliasType 'faam' Apple Menu Items folder
kDropFolderAliasType 'fadr' AppleShare drop folder
kApplicationAliasType 'adrp' Application
kControlPanelFolderAliasType 'fact' Control Panels folder
kExportedFolderAliasType 'faet' Exported AppleShare folder
kExtensionFolderAliasType 'faex' Extensions folder
kContainerServerAliasType 'srvr' File server
kContainerFloppyAliasType 'flpy' Floppy disk
kContainerFolderAliasType 'fdrp' Folder
kContainerHardDiskAliasType 'hdsk' Hard disk
kMountedFolderAliasType 'famn' Mounted AppleShare folder
kContainerAliasType 'drop' Other objects that can contain files
kP referencesFolderAliasType 'fapf' P references folder
kPrintMonitorDocsFolderAliasType 'fapn' PrintMonitor Documents folder
kSharedFolderAliasType 'fash' Shared AppleShare folder
kStartupFolderAliasType 'fast' Startup Items folder
kSystemFolderAliasType 'fasy' System Folder
kContainerTrashAliasType 'trsh' Trash
System Icon Definition IDs
Document and Application Icons
genericQueryDocumentIconResource -16506 default query document icon
genericExtensionIconResource -16415 default extension icon
genericDocumentIconResource -4000 default document icon
genericApplicationIconResource -3996 default application icon
genericDeskAccessoryIconResource -3991 default desk accessory icon
genericEditionFileIconResource -3989 default edition icon
genericStationeryIconResource -3985 default stationery icon
genericP referencesIconResource -3971 default preference file icon
Folder Icons
genericFolderIconResource -3999 default folder icon
privateFolderIconResource -3994 folder without privileges for this
user icon
ownedFolderIconResource -3980 owned folder icon
dropFolderIconResource -3979 drop folder icon
sharedFolderIconResource -3978 shared folder icon
mountedFolderIconResource -3977 mounted folder icon
System Folder Icons
systemFolderIconResource -3983 System Folder icon
appleMenuFolderIconResource -3982 Apple Menu Items folder icon
startupFolderIconResource -3981 Startup Items folder icon
controlPanelFolderIconResource -3976 Control Panels folder icon
printMonitorFolderIconResource -3975 Print Monitor documents folder
p referencesFolderIconResource -3974 P references folder icon
extensionsFolderIconResource -3973 Extensions folder icon
Desktop Icons
floppyIconResource -3998 default 3.5-in. disk icon
trashIconResource -3993 default empty Trash icon
fullTrashIconResource -3984 default full Trash icon
Standard File Package Icons
openFolderIconResource -3997 open folder icon
genericHardDiskIconResource -3995 hard disk icon
desktopIconResource -3992 desktop icon
genericFileServerIconResource -3972 file server icon
genericSuitcaseIconResource -3970 suitcase icon
genericMoverObjectIconResource -3969 System file object icon
Icon Resource Types
large1BitMask 'ICN#'
large4BitData 'icl4'
large8BitData 'icl8'
small1BitMask 'ics#'
small4BitData 'ics4'
small8BitData 'ics8'
mini1BitMask 'icm#'
mini4BitData 'icm4'
mini8BitData 'icm8'
Icon Transform Type values
ttNone 0x0000
ttDisabled 0x0001
ttOffline 0x0002
ttOpen 0x0003
ttSelected 0x4000
ttSelectedDisabled (ttSelected + ttDisabled)
ttSelectedOffline (ttSelected + ttOffline)
ttSelectedOpen (ttSelected + ttOpen)
ttLabel0 0x0000
ttLabel1 0x0100
ttLabel2 0x0200
ttLabel3 0x0300
ttLabel4 0x0400
ttLabel5 0x0500
ttLabel6 0x0600
ttLabel7 0x0700
Icon Alignment Constants
atNone 0x00
atVerticalCenter 0x01
atTop 0x02
atBottom 0x03
atHorizontalCenter 0x04
atLeft 0x08
atRight 0x0C
Icon Selector Value Masks
svLarge1Bit 0x00000001
svLarge4Bit 0x00000002
svLarge8Bit 0x00000004
svSmall1Bit 0x00000100
svSmall4Bit 0x00000200
svSmall8Bit 0x00000400
svMini1Bit 0x00010000
svMini4Bit 0x00020000
svMini8Bit 0x00040000
svAllLargeData 0x000000FF
svAllSmallData 0x0000FF00
svAllMiniData 0x00FF0000
svAll1BitData (svLarge1Bit + svSmall1Bit + svMini1Bit)
svAll4BitData (svLarge4Bit + svSmall4Bit + svMini4Bit)
svAll8BitData (svLarge8Bit + svSmall8Bit + svMini8Bit)
svAllAvailableData 0xFFFFFFFF
Finder Flags
Bit
Flag name number Description
isAlias 15 The file is an alias file. Reserved for
directories-in which case, set to 0.
isInvisible 14 The file or directory is invisible from the
Finder and from the
Standard File Package dialog boxes.
hasBundle 13 The file contains a bundle resource. Reserved for
directories-in which case, set to 0.
nameLocked 12 The file or directory can't be renamed from the
Finder, and the icon cannot be changed.
isStationery 11 The file is a stationery pad. Reserved for
directories-in which case, set to 0.
hasCustomIcon 10 The file or directory contains a customized icon.
Reserved 9 Reserved; set to 0.
hasBeenInited 8 The Finder has recorded information from the
file's bundle resource into the desktop database and
given the file or folder a position on the desktop.
hasNoINITS 7 The file contains no 'INIT' resources; set to
0.Reserved for directories; set to 0.
isShared 6 The application is available to multiple users.
Defined only for applications; otherwise, set to 0.
requiresSwitchLaunch 5 Unused and reserved in System 7.0; set to 0.
colorReserved 4 Unused and reserved in System 7.0; set to 0.
color 1-3 Three bits of color coding.
isOnDesk 0 Unused and reserved in System 7.0; set to 0.
Masks for two of these bits are available as pre defined constants:
fHasBundle 8192 set if file has a bundle
fInvisible 16384 set if icon is invisible
System-related Directories
The system-related directories in System 7.0, the folder types of these directories,
and the constants that represent them are listed here.
Folder
Constant type Directory
kAppleMenuFolderType 'amnu' Apple Menu Items
kControlPanelFolderType 'ctrl' Control Panels
kDesktopFolderType 'desk' Desktop Folder
kExtensionFolderType 'extn' Extensions
kP referencesFolderType 'pref' P references
kPrintMonitorDocsFolderType 'prnt' PrintMonitor Documents
kWhereToEmptyTrashFolderType 'empt' Shared, network Trash
kTrashFolderType 'trsh' Single-user Trash
kStartupFolderType 'strt' Startup Items
kSystemFolderType 'macs' System Folder
kTemporaryFolderType 'temp' Temporary Items
For Mapping Icons to ioIconType in the Desktop Database
Corresponding
Constant Value resource type Description
kLargeIcon 1 'ICN#' Large black-and-white icon with mask
kLarge4BitIcon 2 'icl4' ÍLarge 4-bit color icon
kLarge8BitIcon 3 'icl8' ÍLarge 8-bit color icon
kSmallIcon 4 'ics#' Small black-and-white icon with mask
kSmall4BitIcon 5 'ics4' ÍSmall 4-bit color icon
kSmall8BitIcon 6 'ics8' ÍSmall 8-bit color icon
For custom icons
kCustomIconResource -16455 resource ID for custom icon
For allocating storage for icon data in the desktop database
Value
(bytes in Corresponding
Constant bitmap) resource type Description
kLargeIconSize 256 'ICN#' Large black-and-white icon
with mask
kLarge4BitIconSize 512 'icl4' Large 4-bit color icon
kLarge8BitIconSize 1024 'icl8' Large 8-bit color icon
kSmallIconSize 64 'ics#' Small black-and-white icon
with mask
kSmall4BitIconSize 128 'ics4' Small 4-bit color icon
kSmall8BitIconSize 256 'ics8' Small 8-bit color icon